
extern "C" void start();
extern "C" void write(char *cp);

void start() {
	write("Hello world!");
}


void write(char *cp) {
	int pos = 0;
	int off = 0;
	unsigned short *videomem = (unsigned short*) 0xb8000;
	char *str = cp;
       	char *ch;
	for(ch = str; *ch; ch++) {
		videomem[off+pos] = (unsigned char) *ch | 0x0700;
		pos++;
	}
}
